<?php
/*
全局配置
 */
return array(
    //目录设置
    '_homes'          => array(
        '_modelsHome'     => '_models',
        '_viewsHome'      => '_views',
        '_controllerhome' => '_controllers',
    ),
    'secrkey'         => '90cca653f197dbcc1a3f462e0a22373a', //密钥
    'doc_host'        => 'http://www.ximanage.com/files/',
    //COOKIE相关设置
    'cookie'          => array(
        'host' =>$_SERVER['HTTP_HOST'], //COOKIE作用域
        'path' => '/',
        'user' => 'XIZHU_ADMIN', //用户登录后信息
    ),
    //MEMCACHE缓存相关
    //上传
    'upload'          => array(
        'mime'    => array('image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'), //允许上传的文件MIME值
        'mimejpg' => array('image/jpg', 'image/jpeg', 'image/pjpeg'), //JPG MIME
        'fm'      => array('jpg', 'gif', 'png'),
        'size'    => 2097152, //2MB
        'dir'     => 'C:/www/ypl/xihai/manage/files',
    ),
    'month'           => array(1 => 31, 2 => 28, 3 => 31, 4 => 30, 5 => 31, 6 => 30, 7 => 31, 8 => 31, 9 => 30, 10 => 31, 11 => 30, 12 => 31),
    // 全局参数
    'para'            => array(
        'express_company' => array(
            1 => '<span class="label label-danger">顺丰快递</span>',
            2 => '<span class="label label-success">申通快递</span>',
            3 => '<span class="label label-primary">邮政快递</span>',
        ),
    ),
    // 商品类型
    'goods_type'      => array(
        1 => '普通商品',
        2 => '报单商品',
        3 => '硒米商品',
        4 => '股券商品',
        5 => '创客商品',
    ),
    // 会员身份
    'member'          => array(
        -1 => '用户',
        0  => '西客会员',
        1  => '365会员',
        2  => '良品e店',
        3  => '西海代理',
    ),
    'member_level'    => array(
        -1 => '<span class="label label-default">用户</span>',
        0  => '<span class="label label-info">西客会员</span>',
        1  => '<span class="label label-success">365会员</span>',
        2  => '<span class="label label-primary">良品e店</span>',
        3  => '<span class="label label-danger">西海代理</span>',
    ),
    'maker_level'     => array(
        0 => '<span class="label label-default">无</span>',
        1 => '<span class="label label-success">银牌创客</span>',
        2 => '<span class="label label-primary">金牌创客</span>',
        3 => '<span class="label label-danger">业务经理</span>',
        4 => '<span class="label label-info">区域总监</span>',
        5 => '<span class="label label-info">区县代理</span>',
    ),
    'maker'           => array(
        0 => '无',
        1 => '银牌创客',
        2 => '金牌创客',
        3 => '业务经理',
        4 => '区域总监',
        5 => '区县代理',
    ),
    'member_level_t'  => array(
        -1 => '用户',
        0  => '西客会员',
        1  => '365会员',
        2  => '良品e店',
        3  => '西海代理',
    ),
    'honor'           => array(
        0  => '无',
        4  => '联创',
        5  => '合伙人',
        6  => '区代理',
        7  => '董事',
        8  => '董事-1',
        9  => '董事-2',
        10 => '董事-3',
        11 => '董事-4',
        12 => '董事-5',
        13 => '董事-6',
    ),
    'honor_level'     => array(
        0  => '<span class="label label-default">无</span>',
        4  => '<span class="label label-primary">联创</span>',
        5  => '<span class="label label-primary">合伙人</span>',
        6  => '<span class="label label-primary">区代理</span>',
        7  => '<span class="label label-primary">董事</span>',
        8  => '<span class="label label-primary">董事-1</span>',
        9  => '<span class="label label-primary">董事-2</span>',
        10 => '<span class="label label-primary">董事-3</span>',
        11 => '<span class="label label-primary">董事-4</span>',
        12 => '<span class="label label-primary">董事-5</span>',
        13 => '<span class="label label-primary">董事-6</span>',
    ),
    'honor_level_t'   => array(
        0  => '无',
        4  => '联创',
        5  => '合伙人',
        6  => '区代理',
        7  => '董事',
        8  => '董事-1',
        9  => '董事-2',
        10 => '董事-3',
        11 => '董事-4',
        12 => '董事-5',
        13 => '董事-6',
    ),
    'status'          => array(
        0 => '<span class="label label-danger">禁用</span>',
        1 => '<span class="label label-success">正常</span>',
    ),
    //广告位
    'position'        => array(
        1 => '首页广告顶部',
        2 => '首页分类广告',
        3 => '首页广告专题',
        /*    4 => '首页广告1', */
        5 => '首页公告',
        6 => '系统公告',
        /*  7 => '一元拍你问我答', */
        7 => '首页banner1',
        8 => '首页banner2',
        9 => '首页banner3',

    ),
    //广告位
    'warehouse_types' => array(
        1 => '本地仓',
        2 => '保税仓',
        3 => '海外仓',
    ),
    //快递类型
    'express_type'    => array(
        0 => '默认',
        1 => '以下地区不销售',
        2 => '以下地区每件增加指定运费',
    ),
    //状态参数
    'stat'            => array(
        'normal'        => array(
            0 => '无效',
            1 => '<span class="label label-success">正常</span>',
            2 => '<span class="label label-danger">禁用</span>',
            3 => '删除',
        ),
        'normal_t'      => array(
            0 => '无效',
            1 => '正常',
            2 => '禁用',
            3 => '删除',
        ),
        'case'          => array(
            0 => '无效',
            1 => '<span class="green">正常</span>',
            2 => '<span class="red">删除</span>',
            3 => '待审核',
        ),
        'yesno'         => array(
            0 => '<span class="label label-danger">否</span>',
            1 => '<span class="label label-success">是</span>',
        ),
        'cloud_status'  => array(
            0 => '<span class="label label-default">未审核</span>',
            1 => '<span class="label label-success">审核通过</span>',
            2 => '<span class="label label-danger">驳回</span>',
        ),
        'withdraw'      => array(
            0 => '<span class="label label-default">等待处理</span>',
            1 => '<span class="label label-primary">处理中</span>',
            2 => '<span class="label label-success">完成</span>',
            3 => '<span class="label label-danger">失败</span>',
        ),
        'withdraw_stat' => array(
            0 => '等待处理',
            1 => '处理中',
            2 => '完成',
            3 => '失败',
        ),
        'withdraw_type' => array(
            1 => '微信零钱',
            2 => '银行卡',

        ),
        'drz'           => array(
            1 => '硒豆',
            2 => '金花',
            3 => '硒米',
            4 => '代金券',
            5 => '商品票',
        ),
        'drz_view'      => array(
            1 => '<span class="label label-success">硒豆</span>',
            2 => '<span class="label label-danger">金花</span>',
            3 => '<span class="label label-primary">硒米</span>',
            4 => '<span class="label label-default">代金券</span>',
            5 => '<span class="label label-primary">商品票</span>',
        ),
        'finance'       => array(
            1  => '充值金花',
            2  => '充值硒米',
            3  => '收入',
            4  => '冻结',
            5  => '解冻',
            6  => '提现',
            7  => '退款',
            8  => '分润',
            9  => '管理费',
            10 => '充值商品票',
            11 => '充值代金券',
            12 => '金花抵扣',
            13 => '代金券抵扣',
            14 => '硒米消费',
            15 => '硒豆转出',
            16 => '硒豆转入',
            17 => '硒米转入',
            18 => '硒米转出',
            19 => '硒豆转金花',
            20 => '获得商品票',
            21 => '获得代金券',
            22 => '获得硒米',
            23 => '金花转出',
            24 => '金花转入',
            25 => '签到',
            26 => '销售奖励硒豆',
            27 => '绑定赠送',
            28 => '销售奖励金花',
        ),
        'finance_view'  => array(
            1  => '<span class="label label-success">充值金花</span>',
            2  => '<span class="label label-success">充值硒米</span>',
            3  => '<span class="label label-success">收入</span>',
            4  => '<span class="label label-primary">冻结</span>',
            5  => '<span class="label label-primary">解冻</span>',
            6  => '<span class="label label-danger">提现</span>',
            7  => '<span class="label label-success">退款</span>',
            8  => '<span class="label label-success">分润</span>',
            9  => '<span class="label label-danger">管理费</span>',
            10 => '<span class="label label-success">充值商品票</span>',
            11 => '<span class="label label-success">充值代金券</span>',
            12 => '<span class="label label-danger">金花抵扣</span>',
            13 => '<span class="label label-danger">代金券抵扣</span>',
            14 => '<span class="label label-danger">硒米消费</span>',
            15 => '<span class="label label-danger">硒豆转出</span>',
            16 => '<span class="label label-success">硒豆转入</span>',
            17 => '<span class="label label-success">硒米转入</span>',
            18 => '<span class="label label-danger">硒米转出</span>',
            19 => '<span class="label label-success">硒豆转金花</span>',
            20 => '<span class="label label-success">获得商品票</span>',
            21 => '<span class="label label-success">获得代金券</span>',
            22 => '<span class="label label-success">获得硒米</span>',
            23 => '<span class="label label-danger">金花转出</span>',
            24 => '<span class="label label-success">金花转入</span>',
            25 => '<span class="label label-success">签到</span>',
            26 => '<span class="label label-success">销售奖励硒豆</span>',
            27 => '<span class="label label-success">绑定赠送</span>',
            28 => '<span class="label label-success">销售奖励金花</span>',
        ),
        'order'         => array(
            'status'   => array(
                0 => '未确认',
                1 => '已确认',
                2 => '已取消',
                3 => '无效',
                4 => '退货',
                5 => '已分单',
                6 => '部分分单',
                7 => '交易完成',
                8 => '交易关闭',
            ),
            'shipping' => array(
                0  => '未发货',
                1  => '已发货',
                2  => '已收货',
                3  => '部分已发货',
                4  => '部分申请退货',
                5  => '发货中',
                7  => '申请退货',
                8  => '完成退货',
                9  => '交易结束',
                10 => '部分完成退货',
            ),
            'pay'      => array(
                0 => '未付款',
                2 => '已付款',
                3 => '申请退款',
                4 => '已退款',
                5 => '部分申请退款',
                6 => '部分已退款',
            ),
        ),
        'order_show'    => array(
            'status'              => array(
                0 => '<span class="label label-primary">未确认</span>',
                1 => '<span class="label label-success">已确认</span>',
                2 => '<span class="label label-default">已取消</span>',
                3 => '<span class="label label-default">无效</span>',
                4 => '<span class="label label-danger">退货</span>',
                5 => '<span class="label label-success">已分单</span>',
                6 => '<span class="label label-success">部分分单</span>',
                7 => '<span class="label label-success">交易完成</span>',
                8 => '<span class="label label-default">交易关闭</span>',
            ),
            'shipping'            => array(
                0 => '<span class="label label-default">未发货</span>',
                1 => '<span class="label label-primary">已发货</span>',
                2 => '<span class="label label-success">已收货</span>',
                3 => '<span class="label label-primary">部分已发货</span>',
                4 => '<span class="label label-primary">部分申请退货</span>',
                5 => '<span class="label label-warning">发货中</span>',
                7 => '<span class="label label-danger">申请退货</span>',
                8 => '<span class="label label-default">完成退货</span>',
                9 => '<span class="label label-success">交易结束</span>',
            ),
            'refund_status'       => array(
                1 => '<span class="label label-danger">申请退款</span>',
                2 => '<span class="label label-success">退款申请通过</span>',
                3 => '<span class="label label-default">已退款</span>',
                4 => '<span class="label label-default">退款失败</span>',
                5 => '<span class="label label-default">退款申请驳回</span>',

            ),
            'return_goods_status' => array(
                1 => '<span class="label label-danger">申请退货</span>',
                2 => '<span class="label label-success">退货申请通过</span>',
                3 => '<span class="label label-danger">待收货</span>',
                4 => '<span class="label label-danger">已收货待退款</span>',
                5 => '<span class="label label-default">已退货</span>',
                6 => '<span class="label label-default">退货失败</span>',
                7 => '<span class="label label-default">退款申请驳回</span>',

            ),

            'pay'                 => array(
                0 => '<span class="label label-primary">未付款</span>',
                2 => '<span class="label label-success">已付款</span>',
                3 => '<span class="label label-danger">申请退款</span>',
                4 => '<span class="label label-default">已退款</span>',
                5 => '<span class="label label-danger">申请部分退款</span>',
                6 => '<span class="label label-default">部分已退款</span>',
            ),
            'ziti'                => array(
                0 => '<span class="label label-default">非自提</span>',
                1 => '<span class="label label-danger">已下单</span>',
                2 => '<span class="label label-success">完成提货</span>',
                3 => '<span class="label label-success">已核销</span>',
            ),
            'print'               => array(
                0 => '<span class="label label-default">未打印</span>',
                1 => '<span class="label label-danger">已打印</span>',
            ),
            'transaction_type'    => array(
                1 => '<span class="label label-success">微信公众号</span>',
                2 => '<span class="label label-danger">APP微信</span>',
                3 => '<span class="label label-primary">支付宝</span>',
            ),
        ),

    ),
    //错误代码解释
    'error'           => array(
        200   => '成功',
        300   => '验证码错误',
        301   => '验证码不存在',
        401   => '数据没有变动',
        402   => '帐号已禁用',
        403   => '保存数据失败',
        404   => '数据不存在',
        405   => '帐号格式错误',
        406   => '请填写登录名',
        407   => '帐号不存在',
        408   => '密码长度不足',
        502   => '密码错误',
        503   => '无法保存登录信息',
        504   => '当前密码错误',
        550   => '充值已完成',
        551   => '更新资金账户失败',
        552   => '保存收支明细失败',
        553   => '更新充值信息失败',
        560   => '日期格式不正确',
        561   => '手续费不正确',
        562   => '转账流水号不能为空',
        563   => '更新提现数据失败',
        600   => '名称已存在',
        601   => '用户名已存在',
        602   => '资金账号不存在',
        603   => '提现申请数据异常',
        611   => '域名已存在',
        650   => '组名称已经存在',
        680   => '库存数量不足',
        701   => '文件上传失败',
        702   => '未选择文件',
        703   => '文件格式错误',
        704   => '文件大小超出限制',
        705   => '移动文件失败',
        706   => '目录创建失败',
        707   => '生成缩略图失败',
        711   => '无法更新Memcache',
        800   => '请先登录',
        810   => '收货信息不完整',
        811   => '订单不存在',
        812   => '生成微信支付订单失败',
        813   => '微信支付失败',
        814   => '保存支付数据失败',
        815   => '微信支付信息未设置',
        850   => '提货验证码不符合',
        851   => '订单已经分配给其他门店',
        852   => '订单金额不能小于或等于0',
        900   => '必要参数错误',
        901   => '没有权限',
        40015 => '不合法的菜单类型',
        40016 => '不合法的按钮个数',
        40017 => '不合法的按钮个数',
        40018 => '不合法的按钮名字长度',
        40019 => '不合法的按钮KEY长度',
        40020 => '不合法的按钮URL长度',
        40021 => '不合法的菜单版本号',
        40022 => '不合法的子菜单级数',
        40023 => '不合法的子菜单按钮个数',
        40024 => '不合法的子菜单按钮类型',
        40025 => '不合法的子菜单按钮名字长度',
        40026 => '不合法的子菜单按钮KEY长度',
        40027 => '不合法的子菜单按钮URL长度',
        40028 => '不合法的自定义菜单使用用户',
    ),

);
